function movie=genmovie(movie)
if isempty(movie),
    return;
end;
F = getframe(gca);
movie.aviobj = addframe(movie.aviobj,F);

